package com.woniu.fly.fairmall.db.dao;

import com.woniu.fly.fairmall.db.entity.FairmallSystem;

import java.util.List;
import java.util.Map;

/**
 * @Discription: 系统配置参数持久层
 * @author YangChunhai
 * @created 2020/3/19 11:05
 */
public interface FairmallSystemConfigDao {

    /**
     * @Discription 查询所有配置
     * @author YangChunhai
     * @created 2020/3/19 15:07
     */
    List<FairmallSystem> queryAll();

    /**
     * @Discription 查询所有配置的key和value
     * @author YangChunhai
     * @created 2020/3/19 11:13
     */
    List<Map<String, String>> queryAllConfig();

    /**
     * @Discription 新增配置
     * @author YangChunhai
     * @created 2020/3/19 11:23
     */
    int addConfig(FairmallSystem system);
}
